package jcu.salt.client;

import jcu.salt.io.Receiver;
import jcu.salt.io.Transmittable;

/**
 * Interface to make use of abstract callback for handling
 * received data by the {@link Receiver} to make use of 
 * object oriented polymorphism for decoupling the transmission
 * handling of transmitted {@link Transmittable} objects
 * 
 * @author SAL-T team
 *
 */
public interface DataHandler {

	/**
	 * handles the given {@link Transmittable} - e.g. write to SRB, filesystem, stdout, etc.
	 * @param received
	 */
	public void handleData(Transmittable received);
}
